package com.example.wastewater.dao.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("tb_user")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserDO{

  @TableId(type = IdType.AUTO)
  /**
   * id
   */
  private String id;

  /**
   * username
   */
  private String username;

  /**
   * password
   */
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private String password;

  /**
   * email
   */
  private String email;

  /**
   * 1 管理员 2 普通用户 3 监测人员 4 维护人员
   */
  private Integer roleId;

  /**
   * created_at
   */
  private String createdAt;

  /**
   * updated_at
   */
  private String updatedAt;

  /**
   * del_flag
   */
  @TableLogic
  @TableField("del_flag")
  private Boolean delFlag;
}
